package com.yf.exam.modules.sys.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author 肖守凯
 * @since 2020-11-11
 */
@Data
@TableName("sys_log")
@ApiModel(value="SysLog对象", description="")
public class SysLog extends Model<SysLog> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志id")
    @TableId(value = "log_id", type = IdType.AUTO)
    private Integer logId;

    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "用户名字")
    @TableField("real_name")
    private String realName;

    @ApiModelProperty(value = "响应时间")
    @TableField("TIME")
    private int time;

    @ApiModelProperty(value = "请求方法")
    @TableField("METHOD")
    private String method;

    @ApiModelProperty(value = "请求参数")
    @TableField("PARAMS")
    private String params;

    @ApiModelProperty(value = "IP地址")
    @TableField("IP")
    private String ip;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIM")
    private String createTim;


    @ApiModelProperty(value = "角色名字")
    @TableField("role_name")
    private String roleName;


}
